#include "E_Console.h"
#include <iostream>
#include <list>
#include <string>

E_Console::E_Console(void)
{
}


E_Console::~E_Console(void)
{
}

struct Packet
{
	std::string Command;
	std::list<std::string> Parameters;
};

void E_Console::Prompt()
{
	std::cout << "Awaiting input.\n";

	std::string Line;
	Packet EP;

	std::getline(std::cin,Line);
	EP.Command = Line;
	while(Line.compare("0") != 0)
	{
		std::getline(std::cin,Line);
		EP.Parameters.push_back(Line);
	}

	std::cout << "Command: "<<EP.Command << std::endl;
	for (auto it = EP.Parameters.begin(); it != EP.Parameters.end();it++)
	{
		std::cout << "Parameter: " << *it << std::endl;
	}


}

